Repository navigation
feat: adjust launcher window shadow settings [cherry-pick] - #860
Conversation
1. Add shadowRadius of 40 to the launcher window for a softer, more diffuse shadow 2. Make shadowOffset compositor-aware: use Qt.point(0, 10) on TreeLand and Qt.point(0, 25) elsewhere 3. Tweak dark theme shadow color to a warm dark tone Qt.rgba(0.23, 0.17, 0.17, 0.5) instead of pure black The previous fixed shadow offset did not render well under the TreeLand compositor and the shadow lacked radius control, resulting in a harsh appearance. This change enables a bigger blur radius, adapts the offset per compositor, and warms the dark theme shadow color to better match the Crystal color palette. Log: Launcher window shadow is now softer and adapts to the TreeLand compositor Influence: 1. Open the launcher in both TreeLand and non-TreeLand sessions and verify the shadow renders correctly with no clipping 2. Verify the shadow offset differs between TreeLand (10) and other compositors (25) 3. Test shadow appearance in light and dark themes 4. Confirm the window remains resizable/movable behavior unaffected (system resize and move still disabled) 5. Check blur behind the window still works together with the enlarged shadow radius feat: 调整启动器窗口阴影设置 1. 为启动器窗口添加 40 的阴影半径,使阴影更柔和、更弥散 2. 使阴影偏移适配不同合成器:TreeLand 上使用 Qt.point(0, 10),其他环境使 用 Qt.point(0, 25) 3. 将深色主题阴影颜色调整为暖暗色调 Qt.rgba(0.23, 0.17, 0.17, 0.5),替代 纯黑色 此前固定的阴影偏移在 TreeLand 合成器下渲染效果不佳,且阴影缺少半径控制, 显得生硬。此修改启用了更大的模糊半径,按合成器自适应偏移,并将深色主题阴 影调整为更贴合 Crystal 调色板的暖色调。 Log: 启动器窗口阴影更柔和,并适配 TreeLand 合成器 Influence: 1. 在 TreeLand 和非 TreeLand 会话中分别打开启动器,验证阴影渲染正确且无 裁切 2. 验证 TreeLand(10)与其他合成器(25)下的阴影偏移差异 3. 测试浅色和深色主题下的阴影显示效果 4. 确认窗口缩放/移动行为不受影响(系统缩放和移动仍为禁用) 5. 检查窗口背景模糊与增大后的阴影半径能否正常协同工作 PMS: TASK-396717 (cherry picked from commit c604ad4)
Reviewer's GuideUIAdjust the launcher window shadow radius, compositor-dependent offset, and dark-theme color while leaving its existing movement, resizing, and blur settings unchanged.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 2 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="shell-launcher-applet/package/launcheritem.qml" line_range="352" />
<code_context>
- DWindow.shadowOffset: Qt.point(0, 25)
- DWindow.shadowColor: isDarkTheme ? Qt.rgba(0, 0, 0, 0.5) : Qt.rgba(0, 0, 0, 0.2)
+ DWindow.shadowRadius: 40
+ DWindow.shadowOffset: DesktopIntegration.isTreeLand() ? Qt.point(0, 10) : Qt.point(0, 25)
+ DWindow.shadowColor: isDarkTheme ? Qt.rgba(0.23, 0.17, 0.17, 0.5) : Qt.rgba(0, 0, 0, 0.2)
D.ColorSelector.family: D.Palette.CrystalColor
</code_context>
<issue_to_address>
**Non-TreeLand shadows use wrong offset**
When the launcher runs under a non-TreeLand Wayland compositor, `DesktopIntegration.isTreeLand()` returns true for every Wayland platform, so the binding selects the 10-pixel offset instead of 25 and the launcher shows the wrong shadow placement.
Use a check that identifies TreeLand specifically rather than treating every Wayland platform as TreeLand.
</issue_to_address>
### Comment 2
<location path="shell-launcher-applet/package/launcheritem.qml" line_range="351-354" />
<code_context>
DWindow.enableBlurWindow: true
- DWindow.shadowOffset: Qt.point(0, 25)
- DWindow.shadowColor: isDarkTheme ? Qt.rgba(0, 0, 0, 0.5) : Qt.rgba(0, 0, 0, 0.2)
+ DWindow.shadowRadius: 40
+ DWindow.shadowOffset: DesktopIntegration.isTreeLand() ? Qt.point(0, 10) : Qt.point(0, 25)
+ DWindow.shadowColor: isDarkTheme ? Qt.rgba(0.23, 0.17, 0.17, 0.5) : Qt.rgba(0, 0, 0, 0.2)
D.ColorSelector.family: D.Palette.CrystalColor
StyledBehindWindowBlur {
</code_context>
<issue_to_address>
**Other launcher window keeps old shadow**
When the launcher is presented through the `qml/Main.qml` windowed path, when the launcher uses the window in `qml/Main.qml`, that window still has no `DWindow.shadowRadius`, `shadowOffset`, or `shadowColor` settings, so this launcher path keeps its previous shadow instead of getting the updated appearance.
Apply the intended shadow settings to that window too, or confirm that this path is no longer used.
</issue_to_address>| DWindow.shadowOffset: Qt.point(0, 25) | ||
| DWindow.shadowColor: isDarkTheme ? Qt.rgba(0, 0, 0, 0.5) : Qt.rgba(0, 0, 0, 0.2) | ||
| DWindow.shadowRadius: 40 | ||
| DWindow.shadowOffset: DesktopIntegration.isTreeLand() ? Qt.point(0, 10) : Qt.point(0, 25) |
There was a problem hiding this comment.
🟡 Medium · Non-TreeLand shadows use wrong offset
When the launcher runs under a non-TreeLand Wayland compositor, DesktopIntegration.isTreeLand() returns true for every Wayland platform, so the binding selects the 10-pixel offset instead of 25 and the launcher shows the wrong shadow placement.
Use a check that identifies TreeLand specifically rather than treating every Wayland platform as TreeLand.
Prompt for AI agents
In `shell-launcher-applet/package/launcheritem.qml` at line 352:
**Non-TreeLand shadows use wrong offset**
When the launcher runs under a non-TreeLand Wayland compositor, `DesktopIntegration.isTreeLand()` returns true for every Wayland platform, so the binding selects the 10-pixel offset instead of 25 and the launcher shows the wrong shadow placement.
Use a check that identifies TreeLand specifically rather than treating every Wayland platform as TreeLand.| DWindow.shadowRadius: 40 | ||
| DWindow.shadowOffset: DesktopIntegration.isTreeLand() ? Qt.point(0, 10) : Qt.point(0, 25) | ||
| DWindow.shadowColor: isDarkTheme ? Qt.rgba(0.23, 0.17, 0.17, 0.5) : Qt.rgba(0, 0, 0, 0.2) | ||
| D.ColorSelector.family: D.Palette.CrystalColor |
There was a problem hiding this comment.
🟡 Medium · Other launcher window keeps old shadow
When the launcher is presented through the qml/Main.qml windowed path, when the launcher uses the window in qml/Main.qml, that window still has no DWindow.shadowRadius, shadowOffset, or shadowColor settings, so this launcher path keeps its previous shadow instead of getting the updated appearance.
Apply the intended shadow settings to that window too, or confirm that this path is no longer used.
Prompt for AI agents
In `shell-launcher-applet/package/launcheritem.qml` at lines 351-354:
**Other launcher window keeps old shadow**
When the launcher is presented through the `qml/Main.qml` windowed path, when the launcher uses the window in `qml/Main.qml`, that window still has no `DWindow.shadowRadius`, `shadowOffset`, or `shadowColor` settings, so this launcher path keeps its previous shadow instead of getting the updated appearance.
Apply the intended shadow settings to that window too, or confirm that this path is no longer used.|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, BLumia, wjyrich The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
d7807c0
into
linuxdeepin:develop/2500u3
Cherry-pick commit c604ad4 to develop/2500u3.
Source pull request #854
diffuse shadow
and Qt.point(0, 25) elsewhere
0.17, 0.5) instead of pure black
The previous fixed shadow offset did not render well under the TreeLand
compositor and the shadow lacked radius control, resulting in a harsh
appearance. This change enables a bigger blur radius, adapts the offset
per compositor, and warms the dark theme shadow color to better match
the Crystal color palette.
Log: Launcher window shadow is now softer and adapts to the TreeLand
compositor
Influence:
verify the shadow renders correctly with no clipping
compositors (25)
(system resize and move still disabled)
shadow radius
feat: 调整启动器窗口阴影设置
用 Qt.point(0, 25)
纯黑色
此前固定的阴影偏移在 TreeLand 合成器下渲染效果不佳,且阴影缺少半径控制,
显得生硬。此修改启用了更大的模糊半径,按合成器自适应偏移,并将深色主题阴
影调整为更贴合 Crystal 调色板的暖色调。
Log: 启动器窗口阴影更柔和,并适配 TreeLand 合成器
Influence:
裁切
PMS: TASK-396717
Summary by Sourcery
Improve the launcher window shadow appearance across compositors and themes.
Bug Fixes:
Enhancements: